package com.rico.deploy.service.impl;

import com.rico.deploy.entity.UserLoginLog;
import com.rico.deploy.mapper.UserLoginLogMapper;
import com.rico.deploy.service.UserLoginLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * @author 夏智力
 * @FileName UserLoginLogImpl
 * @date 2021/4/29 18:52
 * @Software: IntelliJ IDEA
 */
@Service
public class UserLoginLogServiceImpl implements UserLoginLogService {

    @Autowired
    private UserLoginLogMapper userLoginLogMapper;

    @Override
    public List<UserLoginLog> selectByExample(Object o) {
        Example example = new Example(UserLoginLog.class);
        example.createCriteria()
                .andEqualTo("username",o);
        List<UserLoginLog> userLoginLogs = userLoginLogMapper.selectByExample(example);
        return userLoginLogs;


    }
}
